feat: add --no_pip_packages and --no_system_packages options#347
feat: add --no_pip_packages and --no_system_packages options#347
Conversation
Add two new command-line options to control package installation: - --no_pip_packages: Skip installation of pip packages - --no_system_packages: Skip installation of system packages (dnf/apt/etc) These options complement the existing --no_packages flag and provide more granular control over which package types are installed. Changes: - burden: Add global variables, argument parsing, and ansible vars output - test_generic ansible role: Pass flags to test execution script - Updated usage documentation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
|
This relates to RPOPC-806 |
PR Compliance Guide 🔍(Compliance updated until commit 3eec7f7)Below is a summary of compliance checks for this PR:
Compliance status legend🟢 - Fully Compliant🟡 - Partial Compliant 🔴 - Not Compliant ⚪ - Requires Further Human Verification 🏷️ - Compliance label Previous compliance checksCompliance check up to commit ebfc190
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
PullHero ReviewProvider: generativelanguage.googleapis.com Model: gemini-2.0-flash Okay, I will review the proposed changes to the Zathras repository. Code ReviewOverviewThis PR introduces two new command-line options: Analysis
Specific Feedback
Example of adding the new options to the
|
PR Code Suggestions ✨Latest suggestions up to 3eec7f7
Previous suggestionsSuggestions up to commit ebfc190
|
|||||||||||||||||||||
User description
Description
Add two new command-line options to control package installation:
These options complement the existing --no_packages flag and provide more granular control over which package types are installed.
Changes:
🤖 Generated with Claude Code
Before/After Comparison
Before
Only
--no_packageswas allowed, this would result in neither system packages AND pip packages being installed. This is fine for instances likebootcbased hosts, but for other instances, we want to test without installing system packages and with installing pip packages.After
Adds
- --no_pip_packagesand--no_system_packagesflags, which prevent installing their respective types of packages.--no_packagesis still available and behaves as normal.Documentation Check
Docs need to be updated.
Clerical Stuff
Closes #346
Relates to JIRA: RPOPC-806
Relevant Logs
Will come shortly
PR Type
Enhancement
Description
Add
--no_pip_packagesflag for granular pip package controlAdd
--no_system_packagesflag for granular system package controlPass new flags through ansible test execution pipeline
Update usage documentation with new options
Diagram Walkthrough
File Walkthrough
burden
Add granular package control flags and parsingbin/burden
gl_no_pip_packagesandgl_no_system_packagesinitialized to 0--no_pip_packagesand--no_system_packagesflags in
set_general_value()functioncreate_ansible_options()function
NO_ARGUMENTSarray ingrab_cli_data()functionmain.yml
Pass new package flags to test scriptansible_roles/roles/test_generic/tasks/main.yml
--no_pip_packagesflag to command line ifconfig_info.do_not_install_pip_packagesis set--no_system_packagesflag to command line ifconfig_info.do_not_install_system_packagesis setarguments